<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui" xmlns:f="http://java.sun.com/jsf/core"
                xmlns:c="http://java.sun.com/jsp/jstl/core"
                template="/templates/template.xhtml">
    <ui:define name="title">大额用户明细</ui:define>
    <ui:define name="content">
        <h:form>
            <div class="topbar clearfix"
                 style="background: -webkit-linear-gradient(top,#f6f7f9 0,#ebedf0 100%);">
                <p:toolbar>
                    <f:facet name="right">
                        <p:commandButton icon="fa fa-reply-all" value="返回"
                                         action="#{loanLargeAmountGzhDetailBean.onReturn()}"
                                         process="@this"/>
                    </f:facet>
                </p:toolbar>
            </div>
            <div class="ui-fluid" style="padding-top: 30px;">0
                <div class="ui-g">
                    <div class="ui-g-12">
                        <div class="card ui-g-12">
                            <div class="ui-g-12">
                                <h3>用户基础信息</h3>
                            </div>
                            <div class="ui-g-12">
                                <div class="ui-g">
                                    <div class="ui-g-1 ui-sm-2">
                                        <p:outputLabel style="font-weight: bold" value="用户姓名"/>
                                    </div>
                                    <div class="ui-g-2 ui-sm-3">
                                        <p:outputLabel value="#{loanLargeAmountGzhDetailBean.$.name}"/>
                                    </div>
                                    <div class="ui-g-1 ui-sm-2">
                                        <p:outputLabel style="font-weight: bold" value="性别"/>
                                    </div>
                                    <div class="ui-g-2 ui-sm-3">
                                        <p:outputLabel value="#{loanLargeAmountGzhDetailBean.$.sex == 1 ? '男':'女'}"/>
                                    </div>
                                    <div class="ui-g-1 ui-sm-2">
                                        <p:outputLabel style="font-weight: bold" value="用户手机号"/>
                                    </div>
                                    <div class="ui-g-2 ui-sm-3">
                                        <p:outputLabel value="#{loanLargeAmountGzhDetailBean.$.mobNum}"/>
                                    </div>

                                    <div class="ui-g-1 ui-sm-2">
                                        <p:outputLabel style="font-weight: bold" value="用户所在地区"/>
                                    </div>
                                    <div class="ui-g-2 ui-sm-3">
                                        <p:outputLabel value="#{loanLargeAmountGzhDetailBean.$.workCity}"/>
                                    </div>

                                    <div class="ui-g-1 ui-sm-2">
                                        <p:outputLabel style="font-weight: bold" value="借贷次数"/>
                                    </div>
                                    <div class="ui-g-2 ui-sm-3">
                                        <p:outputLabel value="#{loanLargeAmountGzhDetailBean.$.loanCount}"/>
                                    </div>

                                    <div class="ui-g-1 ui-sm-2">
                                        <p:outputLabel style="font-weight: bold" value="用户类型"/>
                                    </div>
                                    <div class="ui-g-2 ui-sm-3">
                                        <p:outputLabel value="#{loanLargeAmountGzhDetailBean.$.userType}"/>
                                    </div>

                                    <div class="ui-g-1 ui-sm-2">
                                        <p:outputLabel style="font-weight: bold" value="申请额度"/>
                                    </div>
                                    <div class="ui-g-2 ui-sm-3">
                                        <p:outputLabel value="#{loanLargeAmountGzhDetailBean.$.loanAmount == null ? 0:loanLargeAmountGzhDetailBean.$.loanAmount}万"/>
                                    </div>

                                    <div class="ui-g-1 ui-sm-2">
                                        <p:outputLabel style="font-weight: bold" value="是否有返佣券"/>
                                    </div>
                                    <div class="ui-g-2 ui-sm-3">
                                        <p:outputLabel value="#{loanLargeAmountGzhDetailBean.$.hasBackSecurities ==1 ? '有' : '无'}"/>
                                    </div>

                                    <div class="ui-g-1 ui-sm-2">
                                        <p:outputLabel style="font-weight: bold" value="是否有红包"/>
                                    </div>
                                    <div class="ui-g-2 ui-sm-3">
                                        <p:outputLabel value="#{loanLargeAmountGzhDetailBean.$.hasRedPacket ==1 ? '有' : '无'}"/>
                                    </div>
                                </div>
                            </div>

                            <div class="ui-g-12">
                                <h3>用户资料信息</h3>
                            </div>

                            <div class="ui-g-12">

                                <p:panelGrid columns="8"
                                             columnClasses="ui-grid-col-1,ui-grid-col-2,ui-grid-col-1,ui-grid-col-2,ui-grid-col-1,ui-grid-col-2"
                                             layout="grid" styleClass="ui-panelgrid-blank"
                                             style="border:0px none; background-color:transparent;">

                                    <p:outputLabel style="font-weight: bold" value="①房产"/>
                                    <p:outputLabel value="#{loanLargeAmountGzhDetailBean.map.get(loanLargeAmountGzhDetailBean.$.houseBuy)}"/>
                                    <p:outputLabel style="font-weight: bold" value="②车产"/>
                                    <p:outputLabel value="#{loanLargeAmountGzhDetailBean.map.get(loanLargeAmountGzhDetailBean.$.carBuy)}"/>
                                    <p:outputLabel style="font-weight: bold" value="③保单"/>
                                    <p:outputLabel value="#{loanLargeAmountGzhDetailBean.$.getHasInsurance()}"/>
                                    <p:outputLabel style="font-weight: bold" value="④工资"/>
                                    <p:outputLabel value="#{loanLargeAmountGzhDetailBean.map.get(loanLargeAmountGzhDetailBean.$.salaryPayType)}"/>

                                    <p:outputLabel value="房产所在地："/>
                                    <p:outputLabel value="#{loanLargeAmountGzhDetailBean.map.get(loanLargeAmountGzhDetailBean.$.houseLocation)}"/>
                                    <p:outputLabel value="车牌所在地："/>
                                    <p:outputLabel value="#{loanLargeAmountGzhDetailBean.map.get(loanLargeAmountGzhDetailBean.$.carNumLocation)}"/>
                                    <p:outputLabel value="寿险保单："/>
                                    <p:outputLabel value="#{loanLargeAmountGzhDetailBean.map.get(loanLargeAmountGzhDetailBean.$.insurancePrice)}"/>
                                    <p:outputLabel value="工作性质："/>
                                    <p:outputLabel value="#{loanLargeAmountGzhDetailBean.map.get(loanLargeAmountGzhDetailBean.$.jobCategory)}"/>

                                    <p:outputLabel value=""/>
                                    <p:outputLabel value=""/>
                                    <p:outputLabel value="车辆时间："/>
                                    <p:outputLabel value="#{loanLargeAmountGzhDetailBean.map.get(loanLargeAmountGzhDetailBean.$.carUseTotalTime)}"/>
                                    <p:outputLabel value="寿险保单时间："/>
                                    <p:outputLabel value="#{loanLargeAmountGzhDetailBean.map.get(loanLargeAmountGzhDetailBean.$.insuranceUseTotalTime)}"/>
                                    <p:outputLabel value="工资月收入："/>
                                    <p:outputLabel value="#{loanLargeAmountGzhDetailBean.$.isEntrepreneur() ? '': loanLargeAmountGzhDetailBean.map.get(loanLargeAmountGzhDetailBean.$.salaryIncome)}"/>

                                    <p:outputLabel value=""/>
                                    <p:outputLabel value=""/>
                                    <p:outputLabel value="车辆价格："/>
                                    <p:outputLabel value="#{loanLargeAmountGzhDetailBean.map.get(loanLargeAmountGzhDetailBean.$.carPrice)}"/>
                                    <p:outputLabel value=""/>
                                    <p:outputLabel value=""/>
                                    <p:outputLabel value="企业纳税额："/>
                                    <p:outputLabel value="#{loanLargeAmountGzhDetailBean.$.isEntrepreneur() ? loanLargeAmountGzhDetailBean.map.get(loanLargeAmountGzhDetailBean.$.salaryIncome):''}"/>
                                </p:panelGrid>
                            </div>

                            <p:separator/>
                            <div class="ui-g-12">
                                <p:panelGrid columns="8"
                                             columnClasses="ui-grid-col-1,ui-grid-col-2,ui-grid-col-1,ui-grid-col-2,ui-grid-col-1,ui-grid-col-2"
                                             layout="grid" styleClass="ui-panelgrid-blank"
                                             style="border:0px none; background-color:transparent;">

                                    <p:outputLabel style="font-weight: bold" value="⑤公积金"/>
                                    <p:outputLabel value="#{loanLargeAmountGzhDetailBean.$.hasAccumulationFund()}"/>
                                    <p:outputLabel style="font-weight: bold" value="⑥社保"/>
                                    <p:outputLabel value="#{loanLargeAmountGzhDetailBean.$.hasSocialSecurity()}"/>
                                    <p:outputLabel style="font-weight: bold" value="⑦信用卡"/>
                                    <p:outputLabel value="#{loanLargeAmountGzhDetailBean.$.hasCreditCard == 1 ? '有':'无'}"/>
                                    <p:outputLabel style="font-weight: bold" value="⑧微粒贷额度"/>
                                    <p:outputLabel value="#{loanLargeAmountGzhDetailBean.$.welidaiAmount}"/>

                                    <p:outputLabel value="公积金基数："/>
                                    <p:outputLabel value="#{loanLargeAmountGzhDetailBean.map.get(loanLargeAmountGzhDetailBean.$.accumulationFund)}"/>
                                    <p:outputLabel value="社保已缴时间："/>
                                    <p:outputLabel value="#{loanLargeAmountGzhDetailBean.map.get(loanLargeAmountGzhDetailBean.$.socialSecurity)}"/>
                                    <p:outputLabel value=""/>
                                    <p:outputLabel value=""/>
                                    <p:outputLabel value="借呗额度："/>
                                    <p:outputLabel value="#{loanLargeAmountGzhDetailBean.$.jiebeiAmount}"/>

                                </p:panelGrid>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </h:form>
    </ui:define>
</ui:composition>
